﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebApplication/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="ADAddAccounts.aspx.cs" Inherits="WebApplication_ADAddAccounts" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

            <div id="content">
                        
                           
                            
                <span style="font-size: x-large; color: #3399FF"><strong>
                <span style="font-family: 'Modern No. 20'; background-color: #CCFFFF">ADD NEW ACCOUNT</span></strong></span><br />
                <br />
                <table style="width: 100%">
                    <tr>
                        <td>
                            Account name:</td>
                        <td>
                            <asp:TextBox ID="txtName" runat="server" AutoPostBack="True" 
                                ontextchanged="txtName_TextChanged" ValidationGroup="1" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" ForeColor="#FF6600"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtName" Display="Dynamic" 
                                ErrorMessage="Name cannot be blank!" ValidationGroup="1" 
                                ForeColor="#FF6600"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Password:</td>
                        <td>
                            <asp:TextBox ID="txtPass" runat="server" TextMode="Password" 
                                ValidationGroup="1" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtPass" Display="Dynamic" 
                                ErrorMessage=" Password must be at least 6 characters,  must include at least one upper case letter, one lower case letter, and one numeric digit." 
                                ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$" 
                                ValidationGroup="1" ForeColor="#FF6600"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtPass" Display="Dynamic" 
                                ErrorMessage="Password cannot be blank!" ValidationGroup="1" 
                                ForeColor="#FF6600"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Confirm Password:</td>
                        <td>
                            <asp:TextBox ID="txtCPass" runat="server" TextMode="Password" 
                                ValidationGroup="1" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="txtPass" ControlToValidate="txtCPass" Display="Dynamic" 
                                ErrorMessage="Confirm Password is not matched!" ValidationGroup="1" 
                                ForeColor="#FF6600"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email:</td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server" 
                                ValidationGroup="1" Width="180px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtEmail" Display="Dynamic" 
                                ErrorMessage="Email cannot be blank!" ForeColor="#FF6600" 
                                ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="Wrong format!" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                ForeColor="#FF6600" ValidationGroup="1"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Role</td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Value="2">Admin</asp:ListItem>
                                <asp:ListItem Value="3">ResumeManager</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add" 
                                ValidationGroup="1" BackColor="#00CC66" BorderColor="#00CC66" 
                                BorderStyle="Solid" ForeColor="White" 
                                style="font-weight: 700; font-size: medium; font-family: Garamond" 
                                Width="63px" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <br />
                <br />
                <br />
                        
                           
                            
            </div><!--end content-->

    </asp:Content>


<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
    <div id="sidebar">
        <ul class="nav">
            <li ><a class="headitem item8" >Account Manager</a>
                <ul class="opened">
                    <li class="current"><a href="ADAccounts.aspx">Account Table</a></li>
                </ul>
            </li>
            <li><a class="headitem item2" >Products Manager</a>
                <ul >
                                        <!-- ul items without this class get hiddden by jquery-->
                                        <li><a href="ADEncapsulation.aspx">Encapsulation</a></li>
                    <li><a href="ADTablet.aspx">Tablet</a></li>
                    <li><a href="ADLiquidFilling.aspx">Liquid Filling</a></li>
                </ul>
            </li>
            <li><a class="headitem item3" href="Career.aspx">Resume Manager</a>
                <ul>
                    <li><a href="ADResume.aspx">Resume Table</a></li>
                </ul>
            </li>
            <li><a class="headitem item4" >Quote Us Manager</a>
                <ul>
                    <li><a href="ADQuoteUs.aspx">Quote Us</a></li>
                </ul>
            </li>
            <li><a class="headitem item9" >Contact Us Manager</a>
                <ul>
                    <li><a href="ADContactUs.aspx">Contact Us</a></li>
                </ul>
            </li>
        </ul>
                            <!--end subnav-->
                            
                            <div class="flexy_datepicker">
        </div>
        <ul>
        </ul>
    </div>
</asp:Content>



